package com.ruoyi.petrol.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.petrol.service.IChePetrolService;
import com.ruoyi.petrol.service.impl.ChePetrolServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ChePetrolImage
 * @Description TODO
 * @Author xgj
 * @Date 2025年01月10日 下午3:45
 * @Version 1.0
 */
@RestController
@RequestMapping("/petrolImage")
public class ChePetrolImage {
    @Autowired
    private IChePetrolService chePetrolService;

    @GetMapping("/{id}")
    public AjaxResult chePetrolImage(@PathVariable("id") Long id) {
        String s = chePetrolService.selectChePetrolImageById(id);
//        System.out.println(s);
        return AjaxResult.success(s);
    }
}
